package com.zhxt.fquery.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ml
 * @create 2017-07-21--13:58
 */
public class RightTypeListUtil {


    //抵押类型的登记集合
    private static List<Integer> dyList=null;

    //查封类型的登记集合
    private static List<Integer> cfList=null;

    //预告类型的登记集合
    private static List<Integer> ygList=null;

    //预告抵押类型的登记集合
    private static List<Integer> ydList=null;

    static {
        dyList=new ArrayList<Integer>();
        dyList.add(RightTypeEnum.他项权.getValue());
        dyList.add(RightTypeEnum.土地他项权.getValue());
        dyList.add(RightTypeEnum.土地他项权共有权.getValue());
        dyList.add(RightTypeEnum.现房一般抵押的共有权.getValue());
        dyList.add(RightTypeEnum.现房最高额抵押准他项权.getValue());
        dyList.add(RightTypeEnum.现房最高额抵押准他项权共有权.getValue());

        cfList=new ArrayList<Integer>();
        cfList.add(RightTypeEnum.限制权利.getValue());
        cfList.add(RightTypeEnum.土地限制.getValue());
        cfList.add(RightTypeEnum.虚限制权利.getValue());


        ygList=new ArrayList<Integer>();
        ygList.add(RightTypeEnum.期房预告准所有权.getValue());
        ygList.add(RightTypeEnum.期房预告准所有权共有权.getValue());
//        ygList.add(RightTypeEnum.期房预告准他项权.getValue());
//        ygList.add(RightTypeEnum.期房预告准他项权共有权.getValue());
        ygList.add(RightTypeEnum.现房预告准所有权.getValue());
        ygList.add(RightTypeEnum.现房预告准所有权共有权.getValue());
//        ygList.add(RightTypeEnum.现房预告准他项权.getValue());
//        ygList.add(RightTypeEnum.现房预告准他项权共有权.getValue());


        ydList=new ArrayList<Integer>();
        ygList.add(RightTypeEnum.期房预告准他项权.getValue());
        ygList.add(RightTypeEnum.期房预告准他项权共有权.getValue());
        ygList.add(RightTypeEnum.现房预告准他项权.getValue());
        ygList.add(RightTypeEnum.现房预告准他项权共有权.getValue());



    }

    /**
     * 获得抵押的类型
     * @return
     */
    public static List<Integer> getDyList(){

        return dyList;
    }

    /**
     * 获得查封的类型
     * @return
     */
    public static List<Integer> getCfList(){
        return cfList;
    }


    /**
     * 获取预告类型
     * @return
     */
    public static List<Integer> getYgList(){
        return ygList;
    }


    /**
     * 获取预抵类型
     * @return
     */
    public static List<Integer> getYdList(){
        return ydList;
    }

}
